<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>社医堂</title>
<link rel="stylesheet" type="text/css" href="../../../css/hui.css" />
<link rel="stylesheet" type="text/css" href="../../../css/iconfont.css" />
<link rel="stylesheet" type="text/css" href="../../../css/createQrcode.css" />
</head>
<body>
<style type="text/css">
.hui-speed-dial ul li{width:25%;}
.hui-speed-dial-text{line-height:20px;}
#qrcode{border:solid rgb(36, 175, 1) 10px;width:300px;height:300px;margin:0px;}
</style>
	

<div class="hui-wrap">

	<div style="font-size: 16px;color:#f00;text-align: center;height:50px;line-height:50px;;">患者绑定二维码需要用社医堂APP扫码</div>
    <div id="qrcode"></div>
	
</div>


<script src="../../../script/api.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../script/stm.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../script/qrcode.js" type="text/javascript"></script>
<script type="text/javascript">
apiready = function() {

    createqrcode()
    var width = api.frameWidth-310;
    var left = (width/2)
    document.getElementById("qrcode").style.marginLeft = left+"px";

}

function createqrcode(){

    var qrcode = new QRCode(document.getElementById("qrcode"), {
        text: $api.getStorage('nickname')+"||"+$api.getStorage('docid'),
        width: 300,
        height: 300,
        colorDark: "#000000",
        colorLight: "#ffffff",
        correctLevel: QRCode.CorrectLevel.L
    });
}

    


</script>

</body>
</html>